<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    
  </head>
  <!-- end header -->
  <body>
    <form action="${ctx.host}/alipay/prepare" method="POST">
      <input type="hidden" name="orderId" value="${orderId}">
      <input type="hidden" name="userId" value="${userId}">
      <input type="hidden" name="returnUrl" value="taste/sign-up/success">
      <p><button type="submit" class="button button-big button-fill order-pay" id="ali-pay" style="background-color: #fff; width: 100%; border: 1px solid #ECECED; color: #2197D8;"><i class="icon icon-fs-ali" style="top: -2px;"></i>&nbsp;&nbsp;支付宝支付</button></p>
    </form>
    
    <%@ include file="/WEB-INF/include/script.jsp"%>
    <d:resource type="script" root="${ctx.resource}/build" src="js/page/alipay.js" />
    <script type="text/javascript">
      require(['page/alipay'], function(page) {
        page.init()
      })
    </script>
  </body>
</html>